 {
        
      cc.Class({
            extends: cc.Component,
            properties: {
                labName: {
                    default: null,
                    type: cc.Label
                },
                labId: {
                    default: null,
                    type: cc.Label
                },
                result_list: {
                    default: null,
                    type: cc.Node
                },
                winFont: {
                    default: null,
                    type: cc.Font
                },
                loseFont: {
                    default: null,
                    type: cc.Font
                },
                fangZhuSign: {
                    default: null,
                    type: cc.Node
                },
                nodePlayerBG: {
                    default: null,
                    type: cc.Sprite
                }
            },
            onLoad: function () {
            },
            start: function () {
            },
            bindData: function (e, t, n) {
                var o = Global.tableModel.toLocalSeatIndex(e.sid), i = Global.tableModel.getPlayerModel(o),
                    a = e.total_delta_score;
                if (i) {
                    var r = Global.utils.searchNode(this.result_list, "score").getComponent(cc.Label);
                    r.font = this.winFont, a < 0 && (r.font = this.loseFont);
                    var s = a > 0 ? "+" : "";
                    r.string = s + Global.utils.exchangeToWan(a), this.labName.string = Global.utils.getFixString(i.getName(), 5),
                        Global.utils.searchNode(this.node, "nodeHead").getComponent("HeadController").bindData(i.getPic()),
                        this.labId.string = i.getUserId(), this.fangZhuSign.active = i.getUserId() == n;
                }
                this.setItem(e);
                var l = Global.utils.searchNode(this.node, "win_lose").getComponent(cc.Sprite),
                    c = Global.utils.searchNode(this.node, "win_lose_bg");
                Global.spriteAtlas.setSpriteFrame(this.nodePlayerBG, "Texture/jiesuan", "HYF_DiBan2"),
                    a == t && 0 != t ? Global.spriteAtlas.setSpriteFrame(l, "Texture/jiesuan", "HYF_DaYingJia") : a > 0 && a < t ? Global.spriteAtlas.setSpriteFrame(l, "Texture/jiesuan", "HYF_XiaoYingJia") : (l.spriteFrame = null,
                        c.active = !1, Global.spriteAtlas.setSpriteFrame(this.nodePlayerBG, "Texture/jiesuan", "HYF_DiBan1"));
            },
            setItem: function (e) {
                for (var t = 0; t < e.statistics.length; t++) {
                    var n = this.getItem(t);
                    n.active = !0, Global.utils.searchNode(n, "type_name").getComponent(cc.Label).string = e.statistics[t].desc,
                        Global.utils.searchNode(n, "num").getComponent(cc.Label).string = e.statistics[t].value;
                }
            },
            getItem: function (e) {
                var t = Global.utils.searchNode(this.result_list, "content");
                if (e < t.children.length) return t.children[e];
                var n = cc.instantiate(t.children[0]);
                return t && t.addChild(n), n;
            }
        })
    }